package com.syh.core.ddd.infrastructure.repository;

import com.syh.core.ddd.domain.Aggregate;

import java.io.Serializable;

public interface CreateRepo<Entity extends Aggregate<ID>, ID extends Serializable> extends Repository<Entity, ID> {
  /**
   * 新增
   *
   * @param entity
   * @return
   */
  ID add(Entity entity);


}
